import React from 'react';
import styles from './index.module.scss';

const Button = ({ children, type, onClick }) => {
  return (
    <div className={styles[type]} onClick={onClick}>
      {children}
      <div className={styles[type + 'arrow']} />
    </div>
  );
};

export default Button;
